VGA_BASE            dd      0xb8000

[bits 16]
; @param [#1]   模式代码
VideoMode:
    mov ax, 0x4f02
    mov bx, word [esp + 2]
    int 0x10
    ret 2


[bits 32]
ClearScreen:
    push ebx
    mov ebx, 0xb8000
    mov cx, 0x7fff
CLEAR:
    mov word [ebx], 0
    add bx, 2
    sub cx, 1
    jnz CLEAR
    pop ebx
    ret